import BaseUI from "../../../Core/BaseUI";
import LayerManager from "../../../Core/Libs/LayerManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class EnterUI extends BaseUI {
    @property(cc.Node)
    startGameBtn:cc.Node = null

    @property(cc.Node)
    barMessage:cc.Node = null

    @property(cc.Node)
    loadProgressBar:cc.Node = null

    loadProgressTotal:number = 0;
    loadProgress:number = 0

    protected onLoad() {
        this.startGameBtn.on(cc.Node.EventType.TOUCH_END,this.clickButton,this)
        

    }

    clickButton(){
        LayerManager.open("battle")
    }


    public async onShow(data?: any): Promise<void> {
        console.log("EnterUI onshow")
    }
    public async onHide(): Promise<void> {
        console.log("EnterUI onhide")
    }
}